<template>
  <Header :check="5" @getUserInfo="getUserInfo" />
  <div class="clear_nav"></div>
  <div id="whitepaper">
    <iframe
      :src="bps"
      frameborder="0"
      width="100%"
      height="100%"
      scrolling="auto"
    ></iframe>
  </div>
</template>

<script setup>
import {} from "../request/api";
import { ref, reactive, watch } from "vue";
import {
  showFailToast,
  showSuccessToast,
  showLoadingToast,
  closeToast,
} from "vant";
import { getFloat } from "../utils/common";
import { useRouter } from "vue-router";
import i18n from "@/lang";
import api from "../dapp/api";

const router = useRouter();

let address = ref("");
let bps = ref(api.bps_zh);
// 那得的数据
function getUserInfo(obj) {
  address.value = obj.address;
}
if (sessionStorage.getItem("lang") == "zh") {
  bps.value = api.bps_zh;
} else {
  bps.value = api.bps_en;
}
// window.open(api.bps, "PDF", "width:50%;height:50%;top:100;left:100;");
</script>

<style scoped lang="less">
#whitepaper {
  // padding: 10px 3% 0;
  width: 100vw;
  height: 100vh;
}
</style>
